package com.yyx.zookeeperlock;


import com.yyx.zookeeperlock.utils.DistributedLock;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

	@Bean(initMethod = "init")
	public DistributedLock DistributedLock(){
		return new DistributedLock();
	}

}
